package com.example.sharpshopdemo.config;

import com.example.sharpshopdemo.entity.Result;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

@Configuration
public class Commonconfig {


    @Bean
    @Scope(value = "prototype")
    public Result getResult(){
        Result result = new Result();
        result.setSuccess(false);

        return  result;

    }
}
